

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Projects</title>
    </head>
    <body>
        <div class="nav">
<!-- 
            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
 -->
            <span class="menuButton"><g:link class="list" action="list">Projects List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Project</g:link></span>
        </div>
        <div class="body">
            <h1>Show BasicInfo</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:basicInfoInstance, field:'id')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Name:</td>
                            
                            <td valign="top" class="value">${fieldValue(bean:basicInfoInstance, field:'name')}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Status:</td>                            
                            <td valign="top" class="value">${fieldValue(bean:basicInfoInstance, field:'status')}</td>                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Notes:</td>                            
                            <td valign="top" class="value">${fieldValue(bean:basicInfoInstance, field:'notes')}</td>                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Main Category:</td>                            
                            <td valign="top" class="value"><g:link controller="mainCategory" action="show" id="${basicInfoInstance?.mainCategory?.id}">${basicInfoInstance?.mainCategory?.encodeAsHTML()}</g:link></td>                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Sub Category:</td>                            
                            <td valign="top" class="value"><g:link controller="subCategory" action="show" id="${basicInfoInstance?.subCategory?.id}">${basicInfoInstance?.subCategory?.encodeAsHTML()}</g:link></td>                            
                        </tr>



                        <tr class="prop">
                            <td valign="top" class="name">Textinfos:</td>
                            <td  valign="top" style="text-align:left;" class="value">
<!--  DEBUG begin.  -->
                <table>
                    <thead>
                        <tr>
                   	        <g:sortableColumn property="name" title="Name" />
                   	        <g:sortableColumn property="value" title="Value" />
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${basicInfoInstance.textinfos}" status="i" var="textInfoInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                            <td>${fieldValue(bean:textInfoInstance, field:'name')}</td>
                            <td>${fieldValue(bean:textInfoInstance, field:'value')}</td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>

				<g:link controller="textInfo" params="['basicInfo.id':basicInfoInstance?.id]" 
					action="create">Quick Add TextInfo
				</g:link>
<!--  DEBUG end.  -->
                            </td>
                        </tr>
                        
                        <tr class="prop">
                            <td valign="top" class="name">Start Date Time:</td>                            
                            <td valign="top" class="value">${fieldValue(bean:basicInfoInstance, field:'startDateTime')}</td>                            
                        </tr>
                        
                    </tbody>
                </table>
                
                
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${basicInfoInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </g:form>
            </div>
        </div>
        

        
        <g:render template="/footer" />
            
    </body>
</html>
